package com.middlegroup.pay.service.impl;

import com.middlegroup.pay.dto.RouterRequest;
import com.middlegroup.pay.dto.RouterResponse;
import com.middlegroup.pay.entity.ChannelBankRouter;
import com.middlegroup.pay.mapper.ChannelBankRouterMapper;
import com.middlegroup.pay.service.ChannelBankRouterService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.middlegroup.pay.service.MerchantSubjectChannelRouterService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 银行渠道路由映射表 服务实现类
 * </p>
 *
 * @author pc123
 * @since 2019-01-04
 */
@Service
public class ChannelBankRouterServiceImpl extends ServiceImpl<ChannelBankRouterMapper, ChannelBankRouter> implements ChannelBankRouterService {

    @Override
    @Cacheable(value = "channelRouter", key = "#root.targetClass + #request.bankCode+request.serviceType", unless = "#result eq null")
    public RouterResponse router(RouterRequest request) {
        return null;
    }
}
